package com.hrms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hrms.entity.Employee;
import java.util.List;
import java.util.Map;

public interface EmployeeService extends IService<Employee> {
    // 查询所有记录
    List<Map<String, Object>> selectAll();

    // 登录
    boolean passwordisRight(Employee employee);

    // 查询工号是否存在
    boolean idExist(Employee employee);

    // 查询员工账号状态
    boolean checkStatue(Employee employee);

    // 修改账号状态
    boolean updateStatue(Employee employee);

    // 在表employee中增添一条记录
    boolean add(Employee employee);

    // 管理员修改员工信息
    boolean updatebyAdmin(Employee employee);

    // 根据employee_id返回employee_name
    String selectEmployeeName(Employee employee);
}
